<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>在线管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/layuiadmin/style/admin.css" media="all">
    @yield('head')
    <style type="text/css">
        .layui-fluid {padding:0}
        .layui-card {padding-top:15px;}
    </style>
</head>
<body>
<div class="layui-fluid">
    @yield('content')
</div>
<script src="/static/js/jquery-1.11.0.min.js"></script>
<script src="/static/js/common.js?a={{time()}}"></script>
<script src="/static/layuiadmin/layui/layui.js"></script>
<script type="text/javascript">
    $.ajaxSetup({
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });
    layui.config({
        base: '/static/layuiadmin/' //静态资源所在路径
    }).use(['layer'],function () {
        var layer = layui.layer;
        //错误提示
        @if(count($errors)>0)
        @foreach($errors->all() as $error)
        layer.msg("{{$error}}",{icon:5});
        @break
        @endforeach
        @endif

        //信息提示
        @if(session('status'))
        layer.msg("{{session('status')}}",{icon:6});
        @endif

    });
</script>
@yield('script')
</body>
</html>